﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="getShoppingCart.ascx.cs" Inherits="V5_EShop.Controls.getShoppingCart"  %>
<asp:GridView ID="gvProducts" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="proid" onrowcommand="gvProducts_RowCommand">
    <Columns>
        <asp:BoundField DataField="proname" HeaderText="产品名称" />
        <asp:BoundField DataField="proprice" HeaderText="单价" />
        <asp:TemplateField HeaderText="数量">
            <ItemTemplate>
                <asp:TextBox ID="txtquantity" runat="server" Text='<%# Bind("quantity") %>' Width="66px"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="prototalprice" HeaderText="小计" />
        <asp:BoundField DataField="proid" HeaderText="操作" />
        <asp:TemplateField HeaderText="更改数量">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("proid") %>' CommandName="mmedit">修改</asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="删除">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("proid") %>' CommandName="mmdel">删除</asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
